package admin

import (
	"gin-mvc/models"
)

type (
	Tag struct {
		models.Model
		Name       string `gorm:"uniqueIndex:idx_unique_name" json:"name"`
		CreatedBy  string `json:"created_by"`
		ModifiedBy string `json:"modified_by"`
		CreatedOn  int64  `json:"created_on"`
		ModifiedOn int64  `json:"modified_on"`
		State      int    `gorm:"index" json:"state"`
	}
)

func (tag *Tag) TableName() string {
	return "blog_tags"
}
